<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Examples</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <link href="" rel="stylesheet">
    <script src="http://cdn.bootcss.com/pdfmake/0.1.20/pdfmake.min.js"></script>
    <!-- <script src="http://cdn.bootcss.com/pdfmake/0.1.20/vfs_fonts.js"></script> -->
    <script src="./vfs_fonts.js"></script>

</head>

<body>
    <div id="content">
        <h1>研究生助管（包括临时岗位）10月份考核表</h3>
        <p>单位：航空航天学院</p>
        <p>考核月份：2016年10月</p>
       <table id="customers " class="table table-striped table-bordered " >
						<thead>			
							<tr class='warning'>
								<th>Country</th>
								<th>Population</th>
								<th>Date</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>Chinna</td>
								<td>1,363,480,000</td>
								<td>March 24, 2014</td>
							</tr>
							<tr>
								<td>India</td>
								<td>1,241,900,000</td>
								<td>March 24, 2014</td>
							</tr>
							<tr>
								<td>United States</td>
								<td>317,746,000</td>
								<td>March 24, 2014</td>
							</tr>
							<tr>
								<td>Indonesia</td>
								<td>249,866,000</td>
								<td>July 1, 2013</td>
							</tr>
							<tr>
								<td>Brazil</td>
								<td>201,032,714</td>
								<td>July 1, 2013</td>
							</tr>
						</tbody>
					</table> 
    </div>
    <div id="editor"></div>
    <button id="cmd">generate PDF</button>
</body>
<script type="text/javascript" src="jquery-2.2.4.js"></script>
<script type="text/javascript" src="jspdf.min.js"></script>
<script type="text/javascript">
pdfMake.fonts  = {
  msyh: {
     normal: 'msyh.ttf'
  		}
};
var docDefinition = {
  	 content: '测试pdfMake中文导出乱码', 
  	 defaultStyle: {
    		font: 'msyh'
  		}
};
$('#cmd').click(function(){
	// var docDefinition = { content: '研究生助管（包括临时岗位）10月份考核表' };
pdfMake.createPdf(docDefinition).open();
})

</script>

</html>
